import request from '@/utils/request'

// 查询请假申请列表
export function listTask(query) {
  return request({
    url: '/bd/function/task/mylist',
    method: 'get',
    params: query
  })
}

// 查询部门领导列表
export function listDeptLeader(query) {
  return request({
    url: '/bd/function/task/leader_list',
    method: 'get',
    params: query
  })
}
// 部门领导审批
export function leaderApproval(data) {
  return request({
    url: '/bd/function/task/completeTask',
    method: 'post',
    data: data
  })
}
// 人事审批
export function personnelApproval(data) {
  return request({
    url: '/bd/function/task/completeTask',
    method: 'post',
    data: data
  })
}
